package vip.source.config;

import cn.hutool.core.util.StrUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
import vip.source.enums.OssTypeEnum;

/**
 * @author zy
 */
@ConfigurationProperties(prefix = "source.oss")
public class OssProperties {

    /**
     * 发送短信类型
     */
    private String type;

    public String getType() {
        if (StrUtil.isBlank(type)) {
            type = OssTypeEnum.ALIBABA.getType();
        }
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
